<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vue.js"></script>
</head>

<body>
    <div class="box">
        <h1>{{msg}}</h1>
        <input type="text" :value='msg' @input='handle'>
        <input type="text" :value='msg' @input='msg = e.target.value'>
        <input type="text" v-model='msg'>
    </div>
    <script>
        let vm = new Vue({
            el: '.box',
            data: {
                msg: 'hello Vue!'
            },
            methods: {
                handle(e) {
                    this.msg = e.target.value
                }
            }
        })
    </script>
</body>

</html>